﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {
        static void Main(string[] args)
        {
            Task npc1 = new Task("一号", NPCType.任务, TaskNpc.采集);
            npc1.SB();
            Task npc2 = new Task("二号", NPCType.任务, TaskNpc.杀怪);
            npc2.SB();
            Task npc3 = new Task("三号", NPCType.任务, TaskNpc.送信);
            npc3.SB();

            Pedlar npc4 = new Pedlar("四号", NPCType.商贩, PedlarNpc.材料);
            npc4.SB();
            Pedlar npc5 = new Pedlar("五号", NPCType.商贩, PedlarNpc.武器);
            npc5.SB();
            Pedlar npc6 = new Pedlar("六号", NPCType.商贩, PedlarNpc.食物);
            npc6.SB();

            Vulcan npc7 = new Vulcan("ksdjk号", NPCType.商贩, VulcanNpc.修补);
            npc7.SB();
            Vulcan npc8 = new Vulcan("koo号", NPCType.商贩, VulcanNpc.打造);
            npc8.SB();
            Vulcan npc9 = new Vulcan("lkj号", NPCType.商贩, VulcanNpc.强化);
            npc9.SB();

            Text(npc6);
            Console.ReadKey();
        }
        static void Text(/*父类 父类的命名 */NPC nPC) 
        {
            /*父类的命名调用想输出的方法*/
            nPC.SB();
        }
    }
}
